package com.mes.cloud.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 字典表
 *
 * @author Mr.zhang
 * @version 2019-07-30 13:43:19
 * @email 407892370@qq.com
 */
@Data
@Table(name = "sys_dictionary")
public class SysDictionary implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键ID
     */
    @Id
    private String id;
    /**
     * 字典编码
     */
    @Column(name = "code")
    private String code;
    /**
     * 字典显示值
     */
    @Column(name = "name")
    private String name;
    /**
     * 字典值
     */
    @Column(name = "value")
    private String value;
    /**
     * 模块树id
     */
    @Column(name = "module_tree_id")
    private String moduleTreeId;
    /**
     * 字典排序
     */
    @Column(name = "sort")
    private Integer sort;
    /**
     * 字典描述
     */
    @Column(name = "remark")
    private String remark;
    /**
     * 是否默认(同类型下只允许一个为默认)1-默认
     */
    @Column(name = "default_flag")
    private Integer defaultFlag;
    /**
     * 状态(0：禁用，1：启用)
     */
    @Column(name = "enable_flag")
    private String enableFlag;

    /**
     * 创建人
     */
    @Column(name = "create_by")
    private String createBy;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    /**
     * 修改人
     */
    @Column(name = "update_by")
    private String updateBy;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private Date updateTime;
    /**
     * 删除标记，1：删除，0：未删除
     */
    @Column(name = "del_flag")
    private String delFlag;
    /**
     * 更新日期(8位 20190720)
     */
    @Column(name = "update_date_str")
    private String updateDateStr;
    /**
     * 版本
     */
    @Column(name = "version")
    private Integer version;
    /**
     * 上级id
     */
    @Column(name = "parent_id")
    private String parentId;

    @Column(name = "create_by_no")
    private String createByNo;

    @Column(name = "update_by_no")
    private String updateByNo;
}
